export interface IMDB {
  rating: number
  votes: number
  id: number
}

export enum Rating {
  G = 'G',
  PG = 'PG',
  PG_13 = 'PG-13',
  R = 'R',
  NR = 'NOT RATED'
}

export interface Movie {
  title: string
  year: number
  released: Date
  plot: string
  type: "movie" | "series"
  imdb: IMDB
  rated: Rating
  random_review?: string
}

export type MovieSummary = Pick<Movie, "title" | "imdb">
export type MovieRating = Pick<Movie, "rated" | "random_review">